package com.seguriapp.entities;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

import com.seguriapp.entities.CrimeCategory;

public class CrimeDescription implements Serializable {

  private static final long serialVersionUID = 5331595222541491899L;

  private CrimeCategory category;

  private int count;

  public CrimeCategory getCategory() {
    return category;
  }

  public void setCategory(final CrimeCategory category) {
    this.category = category;
  }

  public int getCount() {
    return count;
  }

  public void setCount(final int count) {
    this.count = count;
  }

  public Map<String, Object> toJsonString() {
    Map<String, Object> map = new LinkedHashMap<String, Object>();
    map.put("category", category.toJsonString());
    map.put("count", count);
    return map;
  }

}
